package com.yunheone.view.Student;

import java.util.Scanner;

/**
 * Created by Administrator on 2017/8/10 0010.
 */
public class PassWord {
    public static String password(){
        System.out.println ("**************学生管理系统—修改密码**************");
        Scanner input=new Scanner ( System.in );
        System.out.print ("请输入修改后的密码：");
        String passw=input.next ();
        try{
            if (passw==null){
                throw new Exception ( "密码格式错误" );
            }
            return passw;
        }catch (Exception e){
            System.out.println (e.getMessage ());
            return password ();
        }
    }
}
